<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>后台管理&nbsp;-&nbsp;Waka &nbsp;|&nbsp;Beta</title>
		
		<link rel="stylesheet" href="static/plugs/bootstrap/css/bootstrap.css" />
        <link rel="stylesheet" href="static/css/font-awesome.css" />
        <link rel="stylesheet" href="static/plugs/layui/css/layui.css" />
        <link rel="stylesheet" href="static/theme/default/css/console.css" />
        <link rel="stylesheet" href="static/css/common.css" />
		
		<script type="text/javascript" src="static/plugs/jquery/jquery-2.0.0.min.js"></script>
        <script type="text/javascript" src="static/js/echarts.js" ></script>
        <script type="text/javascript" src="static/plugs/require/require.js" ></script>
        <script type="text/javascript" src="static/admin/app.js" ></script>
	</head>

	<body class="pace-running pace-done">
		<div class="pace pace-inactive">
			<div class="pace-progress" style="transform: translate3d(100%, 0px, 0px);" data-progress-text="100%" data-progress="99">
				<div class="pace-progress-inner"></div>
			</div>
			<div class="pace-activity"></div>
		</div>

		<div class="framework-topbar">
			<div class="console-topbar">
				<div class="topbar-wrap topbar-clearfix">
					<div class="topbar-head topbar-left">
						<a href="" class="topbar-logo topbar-left">
							<span class="icon-logo">WakaAdmin <sup>Beta</sup></span>
						</a>
					</div>
					  <#list menuTree as menu> 
				   		<a data-menu-target="m-${menu.id}" class="topbar-home-link topbar-btn topbar-left<#if menu_index == 0> active</#if>">
				   		
		                <span> ${menu.title}</span>
		            </a>
				     </#list>
					

					<div class="topbar-info topbar-right">
						<a data-reload="" data-tips-text="刷新" class=" topbar-btn topbar-left topbar-info-item text-center" style="width:50px;">
							<span class="glyphicon glyphicon-refresh"></span>
						</a>
						<div class="topbar-left topbar-user">
							<div class="dropdown topbar-info-item">
								<a href="#" class="dropdown-toggle topbar-btn text-center" data-toggle="dropdown">
									<span class="glyphicon glyphicon-user"></span> ${uname!''}
									<span class="glyphicon glyphicon-menu-up transition" style="font-size:12px"></span>
								</a>
								<ul class="dropdown-menu">
									<li class="topbar-info-btn">
										<a data-modal="user/pass">
											<span><i class="glyphicon glyphicon-lock"></i> 修改密码</span>
										</a>
									</li>
									<li class="topbar-info-btn">
										<a data-modal="user/info">
											<span><i class="glyphicon glyphicon-edit"></i> 修改资料</span>
										</a>
									</li>
									<li class="topbar-info-btn">
										<a data-load="logout" data-confirm="确定要退出登录吗？" data-callcack="success">
											<span><i class="glyphicon glyphicon-log-out"></i> 退出登录</span>
										</a>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="framework-body framework-sidebar-full">
			<div class="framework-sidebar">
				<div class="sidebar-content">
					<div class="sidebar-inner">
						<div class="sidebar-fold">
							<span class="glyphicon glyphicon-option-vertical transition"></span>
						</div>
						
						 <#list menuTree as pmenu>
						  <div data-menu-box="m-${pmenu.id}">
						  	 <#if pmenu.children??>
						  		<#list pmenu.children as menu>
				                 <div class="sidebar-nav main-nav">
				                   
				                    <#if menu.children??>
				                    <div class="sidebar-title">
				                        <div class="sidebar-title-inner">
				                            <span class="sidebar-title-icon fa fa-caret-right transition-min"></span>
				                            <span class="sidebar-title-text">${menu.title}</span>
				                        </div>
				                    </div>
				                    <ul class="sidebar-trans" style="display:none" data-menu-node='m-${pmenu.id}-${menu.id}'>
				                        <#list menu.children as submenu>
				                        <li class="nav-item">
				                            <a data-menu-node='m-${pmenu.id}-${submenu.id}' data-open="${submenu.url}"
				                               class="sidebar-trans">
				                                <div class="nav-icon sidebar-trans">
				                                    <span class="${submenu.icon!'fa fa-link'} transition-min"></span>
				                                </div>
				                                <span class="nav-title">${submenu.title}</span>
				                            </a>
				                        </li>
				                        </#list>
				                    </ul>
				                   
				                    <#else>
				                     <ul class="sidebar-trans">
				                        <li class="nav-item">
				                            <a data-menu-node='m-${pmenu.id}-${menu.id}' data-open="${menu.url}"
				                               class="sidebar-trans">
				                                <div class="nav-icon sidebar-trans">
				                                    <span class="${menu.icon!'fa fa-link'} transition-min"></span>
				                                </div>
				                                <span class="nav-title">${menu.title}</span>
				                            </a>
				                        </li>
				                    </ul>
				                   </#if>
				                </div>
				               </#list>
				              </#if>
						  </div>
						 </#list>
						
							
						</div>
					</div>
				</div>
			<div class="framework-container layer-main-container"></div>
			</div>
		
	</body>

<script>
	function success(res) {
		code = res.code;
		if (code == 0) {
			res.code = 1;
			res.wait = 3;
			res.msg = "退出成功！";
			$.msg.auto(res, 1);
			return false;
		}
		if (code < 0) {
			$.msg.auto(res, 1);
		}
		return false;
	}
</script>
</html>